package com.Ajava1801D.并发包.test0001;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2020/10/7  13:58
 * 描述:
 */
public class MyRunable002 implements Runnable {

    private String ttt;

    public MyRunable002(String ttt) {
        this.ttt = ttt;
    }

    @Override
    public void run() {

        try {
            //Thread.sleep(5000);
            System.out.println("==============0002");
            synchronized (ttt){
                ttt.notify();
            }
        } catch (Exception e) {
            e.printStackTrace();
        }





    }
}
